package com.untrance.shop.common.enums;

import com.untrance.shop.common.utils.MessageUtils;

/**
 * @author eugene zadyra
 */
public enum ProductOrderType {
	BY_DATE("order.product.date"), 
	BY_PRICE("order.product.price"), 
	BY_ALPHABET("order.product.alphabet");

	private String description;

	ProductOrderType(String messageKey) {
		this.description = MessageUtils.getLocalizedMessage(messageKey);
	}
	
	public String getDescription(){
		return description;
	}
}
